Swarm intelligence labor division refers to any algorithm and distributed problem solving method that is inspired by the collective behaviors of social insects and other animal groups. It can be widely used in real-life task assignment. Focusing on the task assignment problem like traffic signal timing, the theory of labor division that describes the interaction mode between bee individuals was introduced, a Bee colony Double Inhibition Labor Division Algorithm (BDILDA) based on swarm intelligence was proposed, in which the dynamic accommodation of swarm labor division was achieved through interaction between internal and external inhibitors of the individual. In order to verify the validity of BDILDA, the traffic signal timing problem was selected for simulation experiments. BDILDA was used to solve actual case of traffic signal timing and the result was compared with the results of Webster algorithm, Multi-Colony Ant Algorithm (MCAA), Transfer Bees Optimizer (TBO) algorithm and Backward FireWorks Algorithm (BFWA). The experimental results show that average delay time of BDILDA is reduced by 14.3-20.1 percentage points, the average parking times is reduced by 3.7-4.5 percentage points, the maximum traffic capacity is increased by 5.2-23.6 percentage points. The results indicate that the proposed algorithm is suitable for solving dynamic assignment problems in uncertain environment.